package me.youline.dataServer.dao;

import java.util.Date;
import java.util.List;

import me.youline.dataServer.entity.UserToken;

/**
 * 用户token操作类
 * @author linhan
 *
 */
public interface UserTokenDAO {

	public void save(UserToken token);

	public boolean deleteUserToken(String token);

	public boolean updateExpiredAtTime(String token, Date time);

	public UserToken getUserTokenByTokenStr(String token);
	
	public void deleteExpiredToken(Date nowTime);
	
	public UserToken getUserTokenByUserName(String userName);
	
	public UserToken getUserTokenTokenByUserId(Long userId);
	
	public List<UserToken> loadAllUserToken();
}
